package cn.neusoft.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author hxj
 * @since 2024-01-02
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_order_detail")
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 存放产品首图
     */
    private String mainpic;

    /**
     * 售价
     */
    private BigDecimal saleprice;

    /**
     * 数量
     */
    private Integer number;

    /**
     * 商品编号
     */
    private Long productId;

    /**
     * 订单编号
     */
    private String ordersn;

}
